package file;

import java.io.File;

public class DeleteDirDemo {
    public static void main(String[]args){
        /**
         * 删除当前目录
         *
         */
        File dir=new File("demoa");
        if (dir.exists()){
            dir.delete();
            System.out.println("该目录已删除");
        }else{
            System.out.println("该目录不存在");
        }
    }
}
